<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./resources/spring_app.css">
</head>

<body>
    <div id="app">
        <div id="header_div">
            <h1 id="title">模拟spring动态加载表格</h1>
            <button id="btn" @click="getTableData()">点击刷新表格</button>
        </div>


        <div id="table_div">
            <table>
                <tr>
                    <th>id</th>
                    <th>name</th>
                    <th>code</th>
                    <th>registration date</th>
                </tr>
                <tr v-for="(item, index) in empList" :key="item.id">
                    <td>{{ item.id }}</td>
                    <td>{{ item.name }}</td>
                    <td>{{ item.code }}</td>
                    <td>{{ item.registrationDate }}</td>
                </tr>

            </table>
        </div>





    </div>


    <!-- cdn导入vue模块 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.js"></script>

    <!-- cdn导入axios模块 -->
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>

    <script src="./src/main.js"></script>
</body>

</html>